package org.jeecg.modules.health_records.health_recordtag.service.impl;

import org.jeecg.modules.health_records.health_recordtag.entity.HealthRecordTagInfo;
import org.jeecg.modules.health_records.health_recordtag.mapper.HealthRecordTagInfoMapper;
import org.jeecg.modules.health_records.health_recordtag.service.IHealthRecordTagInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description: 服务对象与标签关系信息表
 * @Author: jeecg-boot
 * @Date:   2025-07-04
 * @Version: V1.0
 */
@Service
public class HealthRecordTagInfoServiceImpl extends ServiceImpl<HealthRecordTagInfoMapper, HealthRecordTagInfo> implements IHealthRecordTagInfoService {

    @Autowired
    private HealthRecordTagInfoMapper healthRecordTagInfoMapper;
    /**按recordid查询**/
    @Override
    @Transactional(rollbackFor = Exception.class)
    public List<HealthRecordTagInfo> queryByRecordId(HealthRecordTagInfo healthRecordTagInfo) {
        return healthRecordTagInfoMapper.queryByRecordId(Long.valueOf(healthRecordTagInfo.getRecordid()), healthRecordTagInfo.getIdNumber());

    }
}
